package com.fc.mall.portal.controller;

import com.fc.mall.base.object.Result;
import com.fc.mall.portal.service.MemberFormService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.validation.constraints.NotNull;

/**
 * @Author Sunny
 * Created by Sunny on 2019/7/18.
 */
@RestController
@RequestMapping("/member/form")
public class UmsMemberFormController {

    @Autowired
    private MemberFormService memberFormService;


    @PostMapping
    public Result handleCreateMemberForm(@RequestParam @NotNull String formId)
    {
        memberFormService.createMemberForm(formId);
        return Result.success();
    }
}
